package com.xlhj.schedule.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Author: lcj
 * @Date: 2020/11/26 14:13
 * @Description: 定时任务实体类
 * @Version: 0.0.1
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ScheduleCron implements Serializable {

    private static final long serialVersionUID = 1897847176247724942L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String scheduleName;

    private String cronExpression;

    private Integer status;

    private String createBy;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    private String updateBy;

    @TableField(value = "create_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    private String remark;
}
